Skip to content

[codex] Fail fast on XCFramework creation errors#192

Merged
AdamEssenmacher merged 1 commit intomainfrom
codex/fail-fast-xcframework-creation
Apr 21, 2026
Merged

[codex] Fail fast on XCFramework creation errors#192
AdamEssenmacher merged 1 commit intomainfrom
codex/fail-fast-xcframework-creation

Conversation

@AdamEssenmacher
Copy link
Copy Markdown
Owner

Summary

  • wrap the final xcodebuild -create-xcframework call in ThrowIfProcessFailed
  • make the failing step explicit in Cake logs with an xcodebuild -create-xcframework label

Why

BuildXcodeXcframework was discarding the exit code from the final XCFramework assembly step. That let Cake continue after a failed xcodebuild -create-xcframework, which could reuse stale output from externals/ and package the wrong native artifacts.

Impact

Cake now exits immediately when XCFramework creation fails during the externals step.

Validation

  • dotnet tool restore
  • dotnet tool run dotnet-cake -- --target=nuget --names=Google.SignIn

@AdamEssenmacher AdamEssenmacher marked this pull request as ready for review April 21, 2026 19:28
@AdamEssenmacher AdamEssenmacher merged commit 21b63c6 into main Apr 21, 2026
1 check passed
@AdamEssenmacher AdamEssenmacher deleted the codex/fail-fast-xcframework-creation branch April 21, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant